package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.ReturnList;
import com.atguigu.jxc.entity.ReturnListGoods;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author Sanmier
 * @create 2020-12-29 19:50
 */
@Component
public interface ReturnListGoodsDao {

    //保存新增退货单
    void saveReturnList(ReturnList returnList);


    //保存新退货商品
    void saveReturnListGoods(ReturnListGoods returnListGoods);

    //条件查询
    List<ReturnList> getReSearchList(@Param("returnNumber") String returnNumber,@Param("supplierId")  Integer supplierId,@Param("state")  Integer state,@Param("sTime")  String sTime,@Param("eTime")  String eTime);


    //查询退货单商品信息
    List<ReturnListGoods> getReGoodsList(@Param("returnListId") Integer returnListId);


    //退货单商品
    void deleteReturnListGoods(@Param("returnListId") Integer returnListId);


    //退货单商品删除
    void deleteReturnList(@Param("returnListId") Integer returnListId);


    //支付结算（修改退货单付款状态）
    void updateReturneList(Integer returnListId);
}
